package net.qhzw.vip.qiyu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.qhzw.vip.qiyu.entity.DtsCarRetreatMaint;
import net.qhzw.vip.qiyu.entity.RepairMaint;
import net.qhzw.vip.qiyu.mapper.DtsCarRetreatMaintMapper;
import net.qhzw.vip.qiyu.service.DtsCarRetreatMaintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DtsCarRetreatMaintServiceImpl extends ServiceImpl<DtsCarRetreatMaintMapper, DtsCarRetreatMaint>
        implements DtsCarRetreatMaintService {


    @Autowired
    private DtsCarRetreatMaintMapper dtsCarRetreatMaintMapper;

    /***
     * 根据退车ID查询配件
     * @param transferId
     * @return
     */
    @Override
    public List<RepairMaint> getRepairMaintByTransferId(Long transferId) {
        return dtsCarRetreatMaintMapper.getRepairMaintByTransferId(transferId);
    }
}
